package cn.project.lemontree.service;

import cn.project.lemontree.bean.Parent;
import cn.project.lemontree.bean.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


public interface TeacherService extends IService<Teacher> {

    List<Teacher> listpage(int page, int size, String teacherName,String telephone);
    int count(String teacherName,String telephone);
    boolean saveTeacher(Teacher teacher);
    Teacher login(String telephone);
    boolean update(Teacher teacher);
    List<Object> find();
    Teacher findByid(Integer teacherId);
    Teacher findBytp(String telephone);
    List<Teacher> getAllTeachers();
    List<Teacher> findFreeTeachers();
    List<Map<String,Object>>findTeachersAndClass(int page, int size, String teacherName,String telephone);
}
